package com.tangguangdi.base.core.annotation;

import com.tangguangdi.base.common.annotation.ApiGroup;
import com.tangguangdi.base.common.annotation.Note;
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.annotation.*;

/**
 * 控制器接口注解
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@RestController
@RequestMapping
@ApiGroup
public @interface Apis {

    /**
     * 请求路径
     *
     * @return 默认为空
     */
    @AliasFor(annotation = RequestMapping.class)
    String[] path() default {};

    /**
     * 模块名称
     *
     * @return 默认为空
     */
    @AliasFor(annotation = ApiGroup.class)
    String name() default "";

}
